package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface IWmChannelService extends IService<WmChannel> {
    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();

    /**
     * 后台管理端新增频道
     * @param wmChannel
     * @return
     */
    public ResponseResult saveChannel(WmChannel wmChannel);

    /**
     * 后台管理端,分页查询频道
     * @param dto
     * @return
     */
    public ResponseResult listChannel( WmChannelDto dto);

    /**
     * 后台管理端,修改频道
     * 启用禁用
     * @param wmChannel
     * @return
     */
    public ResponseResult updateChannel(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id
     * @return
     */
    public ResponseResult deleteChannel(Integer id);

}
